package com.hxkj.service.timer;

import com.github.pagehelper.PageInfo;
import com.hxkj.domain.po.ScheduleJobEntity;
import com.hxkj.domain.vo.ScheduleJobVO;
import com.platform.common.domain.result.ResultPageStruct;
import com.platform.common.domain.to.PageTo;

public interface ScheduleJobService {

    ResultPageStruct<ScheduleJobVO> list(ScheduleJobEntity jobEntity, PageTo pageParam) throws Exception;

    /**
     * 定时任务信息
     */
    ScheduleJobEntity info(Long jobId) throws Exception;

    /**
     * 保存定时任务
     */
    void save(ScheduleJobVO scheduleJob) throws Exception;

    /**
     * 修改定时任务
     */
    void update(ScheduleJobVO scheduleJob) throws Exception;

    /**
     * 删除定时任务
     */
    void delete(String jobIds) throws Exception;

    /**
     * 立即执行任务
     */
    void run(String jobIds) throws Exception;

    /**
     * 暂停定时任务
     */
    void pause(String jobIds) throws Exception;

    /**
     * 恢复定时任务
     */
    void resume(String jobIds) throws Exception;
}
